package com.ny.whw;

import java.sql.SQLOutput;
import java.util.Scanner;

public class TestPay {
    public static void main(String[] args) {
        double money =15;
        System.out.println("你需要付款的金额为:"+money);
        System.out.println("请选择支付方式：1. 银行卡支付  2.微信支付   3. 支付宝支付");
         Scanner scannsr =new Scanner(System.in);
        switch(scannsr.nextInt()){
            case 1:
                Pay bankPay =new BankPay();
                bankPay.pay (money);
                break;
            case 2:
                System.out.println("选择微信支付");
                break;
            case 3:
                System.out.println("选择支付宝支付");
                break;
        }

}
}
